package at.ac.tuwien.prog.command;

/**
 * 
 * @author christoph.pickl@student.tuwien.ac.at
 */
abstract class AbstractCommand implements ICommand {

	private final int operand1;

	private final int operand2;
	
	
	public AbstractCommand(int operand1, int operand2) {
		this.operand1 = operand1;
		this.operand2 = operand2;
	}

	public final int getOperand1() {
		return this.operand1;
	}

	public final int getOperand2() {
		return this.operand2;
	}

	public final String toString() {
		return this.getClass().getSimpleName() + "[op1=" + this.getOperand1() + "; op2=" + this.getOperand2() + "]";
	}
	
}
